
// test PCB structure
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "my_pcb.c"

void show(mpx_pcb* p2);

void main () {

//char test[3]="p1";
mpx_pcb* test="p1";

mpx_pcb* p1;
p1 = allo_pcb();
p1 = set_pcb(p1,1,"abcd",0, 100);
free(p1);

show(p1);


system("pause");

}

void show(mpx_pcb* p2){
printf("test=%s\n",p2);
printf("The PCB has the following elements:\n");
printf("ID is %d\n", p2->pcb_id);
printf("Name is %s\n", p2->pcb_name);
printf("Status is %d\n",p2->pcb_sta);
printf("Priority is %d\n",p2->pcb_pri);

}